Skip to content

Conversation

liufengyun
Copy link
Contributor

@liufengyun liufengyun commented Nov 25, 2016

In typing of blocks, it's fine to reference local type symbols. Fix #1743.

@liufengyun liufengyun changed the title Try fix i1743: typing of ValDef with anonymous class Try fix #1743: typing of ValDef with anonymous class Nov 25, 2016
@odersky
Copy link
Contributor

odersky commented Nov 25, 2016

Not sure we can do it that way. Avoidance is a tricky issue...

@odersky
Copy link
Contributor

odersky commented Nov 25, 2016

In principle, we should not let a locally defined type escape in the type of a block.

@liufengyun
Copy link
Contributor Author

Thanks @odersky , so I guess in this case the only right solution is to resort to structural types, which we have to decide whether to support or not.

I close it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants